cmake_minimum_required(VERSION 2.8.4)
project(arduino)

add_definitions(-D__AVR__)
add_definitions(-DARDUINO=100)
# add_definitions(-D_TIME_T_DEFINED)
add_definitions(-DDESKTOP)
add_definitions(-DDISABLE_COMMANDS_PROCESSOR)

# add_definitions(-DENABLE_TIMER_DEBUG)
# add_definitions(-DENABLE_WIRES_DEBUG)

AUX_SOURCE_DIRECTORY(src/AquaController SOURCE_FILES)
AUX_SOURCE_DIRECTORY(test/AquaController SOURCE_FILES)

add_subdirectory(stub)
include_directories(stub)

add_executable(arduino ${SOURCE_FILES})
target_link_libraries(arduino stub)